<?php
$appendURL="";
if(strlen($radioBtnName)>0){
    $appendURL = "&c=".$radioBtnName;
}
if(strlen($checked)>0){
    $appendURL.="&check=".$checked;
}?>
<input type="text" name="imge" id="imge" value="<?php echo $checked; ?>" onKeyUp="getData('pages/imagessearch.php?aj&q='+this.value+'<?php echo $appendURL; ?>','imageexist')">
<div id="imageexist">

</div>

<?php if(strlen($checked)>0){?>
<script type="text/javascript">
    getData('pages/imagessearch.php?aj&q='+document.getElementById("imge").value+'<?php echo $appendURL; ?>','imageexist')
</script>
<?php }?>
